<template>
	<view class="main">
		<view class="active_tit">
			<view class="tit">
				雅斯特
			</view> 
			<!-- <view class="add">
				＋
			</view> -->
		</view>
		<ActiveForm required  ref='income12month'>
			<view class="active_label">
				近12个月营业收入：
			</view>
			<view class="active_input">
				<mInput maxlength="16" type="number" v-model="stdOffsurSceneYst.income12month" />
			</view>
		</ActiveForm>
		
		<!-- <ActiveForm required  ref='inMarketYears'>
			<view class="active_label">
				近1个月入住率：
			</view>
			<view class="active_input">
				<mInput type="number" v-model="stdOffsurSceneYst.occupancyRatio1month" />
			</view>
		</ActiveForm>
		
		<ActiveForm required  ref='inMarketYears'>
			<view class="active_label">
				近3个月入住率：
			</view>
			<view class="active_input">
				<mInput type="number" v-model="stdOffsurSceneYst.occupancyRatio3month" />
			</view>
		</ActiveForm> -->
		
		<ActiveForm required  ref='occupancyRatio12month'>
			<view class="active_label">
				近12个月入住率：
			</view>
			<view class="active_input">
				<mInput :thousand='false' type="number" v-model="stdOffsurSceneYst.occupancyRatio12month" />
			</view>
		</ActiveForm>
		
		<ActiveForm required  ref='avgPrice'>
			<view class="active_label">
				平均房价：
			</view>
			<view class="active_input">
				<mInput maxlength="16" type="number" v-model="stdOffsurSceneYst.avgPrice" />
			</view>
		</ActiveForm>
		
		<ActiveForm required  ref='roomSums'>
			<view class="active_label">
				投资规模（房间总数）：
			</view>
			<view class="active_input">
				<mInput :thousand='false' type="number" v-model="stdOffsurSceneYst.roomSums" />
			</view>
		</ActiveForm>
		
		<ActiveForm required  ref='roomUseType'>
			<view class="active_label">
				酒店房屋使用形式：
			</view>
			<view class="active_input">
				<SelectPicker v-model="stdOffsurSceneYst.roomUseType" :options="roomUseTypeOptions" placeholder="请选择" />
			</view>
		</ActiveForm>
		
		<ActiveForm required  ref='roomSurplusYears'>
			<view class="active_label">
				酒店房屋租赁剩余期限（月份数）：
			</view>
			<view class="active_input">
				<input type="number" v-model="stdOffsurSceneYst.roomSurplusYears" />
			</view>
		</ActiveForm>
		<ActiveForm required  ref='hotelType'>
			<view class="active_label">
				酒店类型：
			</view>
			<view class="active_input">
				<SelectPicker v-model="stdOffsurSceneYst.hotelType" :options="hotelTypeOptions" placeholder="请选择" />
			</view>
		</ActiveForm>
		<ActiveForm required  ref='hotelInnerScore'>
			<view class="active_label">
				集团内部评分：
			</view>
			<view class="active_input">
				<mInput :thousand='false' type="number" v-model="stdOffsurSceneYst.hotelInnerScore" />
			</view>
		</ActiveForm>
		<ActiveForm required  ref='openYears'>
			<view class="active_label">
				酒店与雅斯特合作（开业）年限（月份数）：
			</view>
			<view class="active_input">
				<input type="number" v-model="stdOffsurSceneYst.openYears" />
			</view>
		</ActiveForm>
	</view>
</template>

<script>
	import SelectPicker from "../../SelectPicker";
	import RegionPicker from "../../RegionPicker";
	export default {
		name: 'activeForm',
		data() {
			return {
				province: "",
				city: "",
				county: "",
				index: 1,
				stdOffsurSceneYst:{
					avgPrice: 0, //平均房价
					businessId: "", //业务申请流水号
					createTime: "", //创建时间
					createUser: "", //创建人
					customerId: "", //客户编号
					customerSystemId: "", //客户系统编号
					deleteFlag: "", //删除标志
					entityRoleType: "", //数据归属类型
					getDatTime: "", //数据加载时间
					hotelInnerScore: 0, //集团内部评分
					hotelType: "", //酒店类型
					imageUrl: "", //影像路径
					income12month: 0, //近12个月营业收入
					occupancyRatio12month: 0, //近12个月入住率
					occupancyRatio1month: 0, //近1个月入住率
					occupancyRatio3month: 0, //近3个月入住率
					openYears: 0, //与雅斯特合作（开业）年限
					reqId: "", //业务申请序号
					roomSums: 0, //投资规模（房间总数）
					roomSurplusYears: 0, //酒店房屋租赁剩余期限（月）
					roomUseType: "", //酒店房屋使用形式
					sourceSystem: "", //数据来源系统
					updateTime: "", //更新时间
					updateUser: "", //更新人
					uuid: "" //uuid
				},
				roomUseTypeOptions:[],
				hotelTypeOptions:[],
			}
		},
		components: {
			SelectPicker,
			RegionPicker
		},
		mounted() {
			//获取返显数据
			setTimeout(()=>{
				
				//获取下拉类型
				//婚姻状况
				this.roomUseTypeOptions = getApp().globalData.optType.USETYPE
				this.hotelTypeOptions = getApp().globalData.optType.HOTELTYPE
				this.stdOffsurSceneYst = getApp().globalData.stdOffsurSceneYst
			},getApp().globalData.timeout)
		},
		watch:{
			stdOffsurSceneYst:{
				handler:function(res){
					//console.warn('stdOffsurSceneYst组件数据变化',res)
					getApp().globalData.stdOffsurSceneYst = res
				},
				deep:true
			}
		},
		methods:{
			
		}
	}
</script>

<style lang="scss">
	
	
</style>


